# encoding: utf-8
from flask_marshmallow import base_fields
from app.modules.common.parameters import BaseParameters, Parameters


class AppListParameters(Parameters):
    env_name = base_fields.String(
        required = True,
    )
    app_name = base_fields.String(
        required = False,
        missing = None
    )
    entrance_types = base_fields.String(
        required = False,
        missing = None
    )
    zone_code = base_fields.String(
        required = False,
        missing = None
    )
    current_status = base_fields.String(
        required = False,
        missing = None
    )
    is_resource = base_fields.String(
        required = False,
        missing = None
    )
    group = base_fields.String(
        required = False,
        missing = None
    )


class UpdateAppInfoParameters(Parameters):
    env_name = base_fields.String(
        required = False,
        missing = None
    )
